import { axios } from '@/utils/request'

// 查询门店列表
export function getGoodsInfoList(goods_id,params) {
  return axios({
    url: `/info_goods/${goods_id}`,
    method: 'get',
    params: params
  })
}

// 添加门店
export function addGoodsInfo(params) {
  return axios({
    url: '/goods_info',
    method: 'post',
    data: params
  })
}

// 修改门店信息
export function updateGoodsInfo(info_id, params) {
  return axios({
    url: `/goods_info/${info_id}`,
    method: 'put',
    data: params
  })
}

// 批量操作门店商品信息
export function updateInfos(list) {
  return axios({
    url: '/goods_info/infos',
    method: 'put',
    data: { infos: list }
  })
}